//引入mysql模块
var  mysql = require("mysql");
//创建数据库连接池
var pool = mysql.createPool({
    host:'127.0.0.1',
    port:'3306',
    user:'root',
    password:'',
    database:'shada',
    connectionLimit:'20'
});
//导出连接池对象
module.exports=pool;